/*  1:   */ package gov.sat.tax.fwsk.wlrz;
/*  2:   */ 
/*  3:   */ public class JmjBean
/*  4:   */ {
/*  5:   */   private String jmjIP;
/*  6:   */   private int MaxThreads;
/*  7:   */   private int Threads;
/*  8:   */   private int indexPos;
/*  9:   */   private boolean JmServer;
/* 10:   */   
/* 11:   */   public JmjBean(String jmjIP, int MaxThreads, int indexPos, boolean isServer)
/* 12:   */   {
/* 13:12 */     this.jmjIP = jmjIP;
/* 14:13 */     this.MaxThreads = MaxThreads;
/* 15:14 */     this.indexPos = indexPos;
/* 16:15 */     this.Threads = 0;
/* 17:16 */     this.JmServer = isServer;
/* 18:   */   }
/* 19:   */   
/* 20:   */   public boolean isAvailable()
/* 21:   */   {
/* 22:23 */     return this.Threads < this.MaxThreads;
/* 23:   */   }
/* 24:   */   
/* 25:   */   public void addWork()
/* 26:   */   {
/* 27:27 */     this.Threads += 1;
/* 28:   */   }
/* 29:   */   
/* 30:   */   public void removeWork()
/* 31:   */   {
/* 32:31 */     this.Threads -= 1;
/* 33:   */   }
/* 34:   */   
/* 35:   */   public String getJmjIP()
/* 36:   */   {
/* 37:35 */     return this.jmjIP;
/* 38:   */   }
/* 39:   */   
/* 40:   */   public int getIndexPos()
/* 41:   */   {
/* 42:39 */     return this.indexPos;
/* 43:   */   }
/* 44:   */   
/* 45:   */   public boolean isServer()
/* 46:   */   {
/* 47:43 */     return this.JmServer;
/* 48:   */   }
/* 49:   */   
/* 50:   */   public int getThreads()
/* 51:   */   {
/* 52:47 */     return this.Threads;
/* 53:   */   }
/* 54:   */ }


/* Location:           D:\htjs\document\wsrz\WsrzEjbInf\
 * Qualified Name:     gov.sat.tax.fwsk.wlrz.JmjBean
 * JD-Core Version:    0.7.0.1
 */